<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="java.util.ArrayList,edu.wfmanage.models.*, com.opensymphony.xwork2.ActionContext" %>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Modify lookup value</title>
<link rel="stylesheet" href="mystyle.css">
</head>

<body>
<h1 align="left">Modify the Lookup <%=ActionContext.getContext().getSession().get("table") %></h1> 

<s:form action="modify_lookup" align="left">
<s:hidden name="table" value="%{lookup.table}"/>
<s:hidden name="lookup_id" value="%{lookup.id}"/>
<table id="text" align="center">
<s:if test="%{table=='User'}">
<tr>
<td><s:textfield  label="Name" name="name" id="myinput" value="%{lookup.name}" readonly="true"/> </td>
</tr>
</s:if>
<s:else>
<tr>
<td><s:textfield  label="Name" name="name" id="myinput" value="%{lookup.name}"/> </td>
</tr>
</s:else>
<tr>
<td><s:select label="Is current?" headerKey="" headerValue="" name="is_current" list="#{'1':'yes', '0':'no'}" value="%{lookup.is_current}" />
</tr>
<td>
<s:submit name ="submit" value="Modify" id="mysubmit" align="center" />
</td>
<td>
</td>
</table>
</s:form>

</body>
</html>